package com.itheima_11;

import java.util.TreeSet;

public class test_11_4 {
    public static void main(String[] args) {
        TreeSet<Employee> t=new TreeSet<>();
        Employee e=new Employee("王五",25,13000);
        Employee e1=new Employee("李四",25,13000);
        Employee e2=new Employee("小花",25,13000);
        Employee e3=new Employee("宗总",25,13000);
        t.add(e);
        t.add(e1);
        t.add(e2);
        t.add(e3);
        for (Employee employee : t) {
            System.out.println(employee);
        }
    }
}
